/*******************************************************************************
 * Copyright (c) Jerges A. Bello G. 2014. Reservado todos los derechos.
 ******************************************************************************/
package com.jabex.persistence.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;

/**
 * Created by Jerges Bello on 14/05/2014.
 *
 *
 */
@Entity
@Table(name = "ADA_COUNTRIES")
public class Countries extends Identity {
    @Column(name = "NAME", length = 80, unique = false, nullable = false)
    private String name;
    @Column(name = "LOCALE", length = 8, unique = false, nullable = false)
    private String locale;
    @OneToMany(fetch = FetchType.EAGER)
    private List<Cities> citiesList;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public List<Cities> getCitiesList() {
        return citiesList;
    }

    public void setCitiesList(List<Cities> citiesList) {
        this.citiesList = citiesList;
    }
}
